Method Query_BuildPvtSqlInvocation(long, int?, int, int, bool, string, long[]?, bool)

Assembly: redb.Core.dll

Builds the full SELECT statement that invokes pvt_build_query_sql.
Scalar arguments are inlined safely (no user-controlled strings);
only the three jsonb arguments are exposed as binding placeholders:
$1 = filter (jsonb)
$2 = order (jsonb)
$3 = distinct_on (jsonb) — array of {field|$expr} entries; NULL when absent.
All may be NULL — the caller should pass DBNull when absent.
Returns null when v2-pvt is not supported.

string? Query_BuildPvtSqlInvocation(long schemeId, int? limit, int offset, int maxDepth, bool distinct, string sourceMode, long[]? treeIds, bool hasDistinctOn = false)